package ink.sunflowerk.dao;


import ink.sunflowerk.entity.MyFile;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface MyFileMapper {
       @Insert("insert into tab_my_file(furl,fmd5,fsize) values(#{furl},#{fmd5},#{fsize})")
       int addOne(MyFile myFile);
       @Select("select * from tab_my_file where fid=#{fid}")
       MyFile getOneByFid(int fid);
       @Select("select * from tab_my_file where fmd5=#{fmd5}")
       MyFile getOneByFmd5(String fmd5);
}
